font class More...
#include <vstgui.h>
Public Member Functions | |
~CFontDesc () | |
CFontDesc & | operator= (const CFontDesc &) |
bool | operator== (const CFontDesc &) const |
void * | getPlatformFont () |
get platform font object | |
Static Public Member Functions | |
static void | cleanup () |
does some cleanup, needed for GDIPLUS | |
Protected Member Functions | |
void | freePlatformFont () |
Protected Attributes | |
char * | name |
CCoord | size |
long | style |
void * | platformFont |
Constructors | |
| |
CFontDesc (const char *name=0, const CCoord &size=0, const long style=0) | |
CFontDesc (const CFontDesc &font) | |
CFontDesc Methods | |
| |
const char * | getName () const |
get the name of the font | |
const CCoord & | getSize () const |
get the height of the font | |
const long & | getStyle () const |
get the style of the font | |
void | setName (const char *newName) |
set the name of the font | |
void | setSize (CCoord newSize) |
set the height of the font | |
void | setStyle (long newStyle) |
set the style of the font | |
Reference Counting Methods | |
| |
virtual void | forget () |
decrease refcount and delete object if refcount == 0 | |
virtual void | remember () |
increase refcount | |
long | getNbReference () const |
get refcount | |
Message Methods | |
| |
virtual CMessageResult | notify (CBaseObject *sender, const char *message) |
font class
~CFontDesc | ( | ) |
void cleanup | ( | ) | [static] |
does some cleanup, needed for GDIPLUS
virtual void forget | ( | ) | [inline, virtual, inherited] |
decrease refcount and delete object if refcount == 0
Reimplemented in CDrawContext.
void freePlatformFont | ( | ) | [protected] |
const char* getName | ( | ) | const [inline] |
get the name of the font
long getNbReference | ( | ) | const [inline, inherited] |
get refcount
void * getPlatformFont | ( | ) |
get platform font object
const CCoord& getSize | ( | ) | const [inline] |
get the height of the font
const long& getStyle | ( | ) | const [inline] |
get the style of the font
virtual CMessageResult notify | ( | CBaseObject * | sender, | |
const char * | message | |||
) | [inline, virtual, inherited] |
bool operator== | ( | const CFontDesc & | f | ) | const |
virtual void remember | ( | ) | [inline, virtual, inherited] |
increase refcount
void setName | ( | const char * | newName | ) |
set the name of the font
void setSize | ( | CCoord | newSize | ) |
set the height of the font
void setStyle | ( | long | newStyle | ) |
set the style of the font
char* name [protected] |
void* platformFont [protected] |
long style [protected] |